package cn.youqu.happy.module.youqu.controller.app.userTell.vo;

import cn.youqu.happy.framework.common.validation.InEnum;
import cn.youqu.happy.module.youqu.enums.userTell.UserTellStatusEnum;
import cn.youqu.happy.module.youqu.enums.userTell.UserTellTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@ApiModel("用户 APP - 用户发表说说 Request VO")
@Data
@ToString(callSuper = true)
public class AppUserTellPublishReqVO {


    @ApiModelProperty(value = "标题")
    @NotEmpty(message = "标题 不能为空")
    private String title;

    @ApiModelProperty(value = "详细内容")
    @NotEmpty(message = "详细内容 不能为空")
    private String detail;

    @ApiModelProperty(value = "活动id")
    @NotNull(message = "活动id 不能为空")
    private Integer activityId;

    @ApiModelProperty(value = "图片数组")
    @Size( max = 5)
    private List<String> imgList;

    /**
     * {@link UserTellStatusEnum}
     */
    @ApiModelProperty(value = "友说状态")
    @InEnum(value = UserTellStatusEnum.class, message = "请选择正确的状态")
    private Integer tellStatus;

    /**
     * {@link UserTellTypeEnum}
     */
    @ApiModelProperty(value = "友说类型")
    @InEnum(value = UserTellTypeEnum.class, message = "请选择正确的类型")
    private Integer tellType;


}
